package com.kunpu.mami.channel.exception;

/**
 * Created with IntelliJ IDEA.
 * User: liuhao
 */
public class MamiiException extends RuntimeException {


	private static final long serialVersionUID = 8628104976142969095L;

	private int errorCode;

    private String message;

    public MamiiException() {
        super();
    }

    public MamiiException(Throwable throwable ) {
        super(throwable);
    }

    public MamiiException(int errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public MamiiException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
        this.message = message;
    }

    public MamiiException(int errorCode, String message, Throwable throwable) {
        super(message, throwable);
        this.errorCode = errorCode;
        this.message = message;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
